﻿namespace WillSortSimulation;

public enum PlanType
{
    Default = 0,
    Random = 1,
    Sorted,
    Count,
}

public class WillPlan
{
    public int[] SchoolIDArray;
    public int planID;
    public int schoolGot;
    public PlanType planType;
    public WillPlan(int id, int planSchoolNum)
    {
        planID = id;
        SchoolIDArray = new int[planSchoolNum];
        schoolGot = -1;
        planType = PlanType.Default;
    }

    public void FillPlan(int[] ids)
    {
        Array.Copy(ids, SchoolIDArray, SchoolIDArray.Length);
    }

    public void Dump()
    {
        Console.Write($"ID: {planID}, \tWills: {SchoolIDArray[0]}");
        for (int i = 1; i < SchoolIDArray.Length; i++)
        {
            Console.Write($", {SchoolIDArray[i]}");
        }
        
        Console.Write($", \tSchool Got: {schoolGot}");
        Console.Write("\r\n");
    }
}